package com.cg.javafxdemospring;

import com.cg.javafxdemospring.controller.DemoSplash;
import com.cg.javafxdemospring.view.DemoView;
import de.felixroske.jfxsupport.AbstractJavaFxApplicationSupport;
import javafx.stage.Stage;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class JavafxDemoSpringApplication extends AbstractJavaFxApplicationSupport {
    public static void main(String[] args) {
        launch(JavafxDemoSpringApplication.class, DemoView.class,new DemoSplash(), args);
    }
    @Override
    public void beforeInitialView(Stage stage, ConfigurableApplicationContext ctx) {
        stage.setTitle("标题");
        stage.setWidth(300);
        stage.setHeight(300);
    }
    /**
     * 窗体图标
     */
//    public Collection<Image> loadDefaultIcons() {
//        return Arrays.asList(new Image("图片"));
//    }
}
